<%--
  Created by IntelliJ IDEA.
  User: l
  Date: 2022/5/29
  Time: 20:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8"/>
    <title>最家</title>
    <link rel="stylesheet" type="text/css" href="css/public.css"/>
    <link rel="stylesheet" type="text/css" href="css/myorder.css"/>
    <script src="js/jquery-1.12.4.min.js"></script>
</head>
<body><!------------------------------head------------------------------>
<%@ include file="header1.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!------------------------------idea------------------------------>
<div class="address mt">
    <div class="wrapper clearfix"><a href="indexselect" class="fl">首页</a><span>/</span><a href="mygxinselect" class="on">个人中心</a><span>/</span><a
            href="myprodselect" class="on">待评价商品</a></div>
</div><!------------------------------Bott------------------------------>
<div class="Bott">
    <div class="wrapper clearfix">
        <div class="zuo fl">
            <h3><a href="#"><img width="80px" height="80px" src="image/headerphoto/${hp.user_filename}"/></a>${name.user_id}
                <p class="clearfix"><span class="fl">[${name.user_name}]</span><span class="fr"><a href="/lyq/admin/logout">[退出登录]</a></span></p></h3>
            <div><h4>我的交易</h4>
                <ul>
                    <li><a href="showcart">我的购物车</a></li>
                    <li><a href="myorderqselect">我的订单</a></li>
                    <li class="on"><a href="myprodselect">评价晒单</a></li>
                </ul>
                <h4>个人中心</h4>
                <ul>
                    <li><a href="mygxinselect">我的中心</a></li>
                    <li><a href="addressselect">地址管理</a></li>
                </ul>
                <h4>账户管理</h4>
                <ul>
                    <li><a href="mygrxxselect">个人信息</a></li>
                    <li><a href="remimaselect">修改密码</a></li>
                </ul>
            </div>
        </div>
        <div class="you fl">
            <div class="my clearfix"><h2 class="fl">商品评价</h2></div>
            <div class="dlist">
                <ul class="clearfix" id="pro">
                    <li class="on"><a href="#2">待评价商品</a></li>
                    <li><a href="#2">已评价商品</a></li>
                    <li><a href="#2">评价失效商品</a></li>
                </ul>
            </div>

            <div class="sx clearfix">
                <div class="clearfix thing">
                    <c:forEach items="${wlist}" var="w">
                    <dl class="fl">
                        <dt><a href="#"><img width="200px" height="200px" src="image/product/${w.order_p_filename}"/></a></dt>
                        <dd><a href="#">${w.order_p_name}</a></dd>
                        <dd>¥${w.order_p_price}</dd>
                        <dd><a href="myprodselect?id=${w.id}">评价</a></dd>
                    </dl>
                    </c:forEach>
                </div>


                <div class="clearfix thing">
                    <c:forEach items="${list}" var="c">
                    <dl class="fl">
                        <dt><a href="#"><img width="200px" height="200px" src="image/product/${c.comment_p_filename}"/></a></dt>
                        <dd><a href="#">${c.comment_p_name}</a></dd>
                        <dd>¥${c.comment_p_price}</dd>
                        <dd><a href="myprodselect?did=${c.comment_id}">查看评价</a></dd>
                    </dl>
                    </c:forEach>
                </div>


                <div class="clearfix">
                    <dl class="fl">
                        <c:forEach var="y" items="${ylist}">
                        <dt><a href="#"><img width="200px" height="200px" src="image/product/${y.order_p_filename}"/></a></dt>
                        <dd><a href="#">${y.order_p_name}</a></dd>
                        <dd>¥${y.order_p_price}</dd>
                        <dd><a href="#2">暂不能评价</a></dd>
                        </c:forEach>
                    </dl>
                </div>
            </div>
        </div>
    </div>
</div>
<!--<dl class="fl"><dt><a href="#"><img src="img/nav3.jpg"/></a></dt><dd><a href="#">家用创意壁挂  釉下彩复古</a></dd><dd>¥199.00</dd><dd>16000人评价</dd><dd><a href="#">待评价</a></dd></dl><dl class="fl"><dt><a href="#"><img src="img/nav3.jpg"/></a></dt><dd><a href="#">家用创意壁挂  釉下彩复古</a></dd><dd>¥199.00</dd><dd>16000人评价</dd><dd><a href="#">待评价</a></dd></dl>-->
<!--遮罩-->
<div class="mask"></div><!--评价弹框-->
<div class="pj">
    <div class="clearfix"><a href="#" class="fr gb"><img src="img/icon4.png"/></a></div>
    <h3>商品评分</h3>
    <form action="dochage" method="post">
        <input type="hidden" name="oid" value="${id}">
        <textarea name="desc" rows="20" cols="20" placeholder="请输入评价"></textarea>
        <div class="bc"><input type="submit" value="保存"/><input type="button" value="取消"/></div>
    </form>
</div><!--查看评价-->
<div class="chak">
    <div class="clearfix"><a href="#" class="fr gb"><img src="img/icon4.png"/></a></div>
    <h3>商品评分</h3>
    <form action="doupdatecomment" method="post">
        <input type="hidden" name="cid" value="${ct.comment_id}">
        <textarea name="desc" rows="20" cols="20" placeholder="请输入评价">${ct.comment_desc}</textarea>
        <div class="bc"><input type="submit" value="保存"/><input type="button" value="取消"/></div>
    </form>
</div>

<!--返回顶部-->
<div class="gotop"><a href="showcart">
    <dl>
        <dt><img src="img/gt1.png"/></dt>
        <dd>去购<br/>物车</dd>
    </dl>
</a><a href="#" class="dh">
    <dl>
        <dt><img src="img/gt2.png"/></dt>
        <dd>联系<br/>客服</dd>
    </dl>
</a><a href="mygxinselect">
    <dl>
        <dt><img src="img/gt3.png"/></dt>
        <dd>个人<br/>中心</dd>
    </dl>
</a><a href="#" class="toptop" style="display: none">
    <dl>
        <dt><img src="img/gt4.png"/></dt>
        <dd>返回<br/>顶部</dd>
    </dl>
</a>
    <p>400-800-8200</p></div><!--footer-->
<div class="footer">
    <div class="top">
        <div class="wrapper">
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot1.png"/></a><span class="fl">7天无理由退货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot2.png"/></a><span class="fl">15天免费换货</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot3.png"/></a><span class="fl">满599包邮</span>
            </div>
            <div class="clearfix"><a href="#2" class="fl"><img src="img/foot4.png"/></a><span class="fl">手机特色服务</span>
            </div>
        </div>
    </div>
    <p class="dibu">最家家居&copy;2013-2017公司版权所有 京ICP备080100-44备0000111000号<br/>
        违法和不良信息举报电话：400-800-8200，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p></div>
<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="js/user.js" type="text/javascript" charset="utf-8"></script>
<script>
    $(document).ready(function () {
        var url = window.location.href;
        var result = url.split("?")[1];
        var val = result.split("&");
        var len = val.length;
        for(var i=0; i<len; i++) {
            if(val[i].split("=")[0] === "id") {
                $(".mask").show();
                $(".pj").show();
            }
            if(val[i].split("=")[0] === "did") {
                $(".mask").show();
                $(".chak").show();
                $("#pro li").eq(1).addClass("on").siblings().removeClass("on");
                $(".thing").eq(0).hide();
                $(".thing").eq(1).show();
            }
        }
    })
</script>
</body>
</html>
